package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.reggie.domain.Order;

import java.util.Date;

public interface OrderService {

    //保存
    void submit(Order order);

    //查询历史订单
    Page<Order> findByUserPage(Integer pageNum, Integer pageSize);

    //查询订单明细
    Page<Order> findByPage(Integer pageNum, Integer pageSize,String number,Date beginTime,Date endTime);
}
